ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := hello-world.o
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build
MDIR ?= $(shell pwd)
.PHONY: modules clean
modules:
	$(MAKE) -C $(KDIR) M=$(MDIR) modules
clean:
	$(MAKE) -C $(KDIR) M=$(MDIR) clean
endif
